/*
 * Copyright (c) Huawei Technologies Co.,Ltd. 2023. All rights reserved.
 */
package org.opengauss.intercept;

/**
 * Title: the DataRecordFactory class.
 * <p>
 * Description:
 *
 * @author justbk
 * @version [Tools 0.0.1, 2023/7/24]
 * @since 2023/7/24
 */
public class DataRecordFactory {
    private static DataRecordFactory instance = new DataRecordFactory();
    private DoRecord exectorRecord = new DoRecord("exector");
    private DoRecord stmtRecord = exectorRecord;
    private DoRecord paramRecord = stmtRecord;
    private DoRecord resultRecord = paramRecord;
//    private DoRecord stmtRecord = new DoRecord("stmt");
//    private DoRecord paramRecord = new DoRecord("param");
//    private DoRecord resultRecord = new DoRecord("result");
    
    public static DoRecord getExectorRecord() {
        return instance.exectorRecord;
    }
    
    public static DoRecord getStmtRecord() {
        return instance.stmtRecord;
    }
    
    public static DoRecord getParamRecord() {
        return instance.paramRecord;
    }
    
    public static DoRecord getResultRecord() {
        return instance.resultRecord;
    }
}
